from selenium import webdriver

driver = webdriver.Firefox()
driver.get('https://www.baidu.com/')
# title=driver.title    #获取页面的title
# print(title)

# url = driver.current_url  #获取当前页面的url
# print(url)

# pagesource=driver.page_source  #获取页面的源码
# print(pagesource)

driver.quit()
